package com.baobao_jk.tutorialmod.items.armor;

import com.baobao_jk.tutorialmod.Main;
import com.baobao_jk.tutorialmod.init.ModItems;
import com.baobao_jk.tutorialmod.util.IHasModel;

import net.minecraft.inventory.EntityEquipmentSlot;
import net.minecraft.item.ItemArmor;

public class ArmorBase extends ItemArmor implements IHasModel{

    public ArmorBase(String name, ArmorMaterial materialIn, int renderIndexIn, EntityEquipmentSlot equipmentSlotIn) {
        super(materialIn, renderIndexIn, equipmentSlotIn);
        setUnlocalizedName(name); //未本地化的名称
        setRegistryName(name); //注册的名称
        setCreativeTab(Main.tutorialtab); //标签栏
        ModItems.ITEMS.add(this); //添加item注册
    }

    @Override
    public void registerModels() {
        Main.proxy.registerItemRenderer(this, 0, "inventory"); //代理注册
    }
}
